maxa function in openoffice calc